package com.group4.datafactorybackend.entity.DTO;

import com.group4.datafactorybackend.util.PageCode;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

/**
 * @author aKUN
 * @date 2022/7/28
 * @description 用于查询和分页展示 TODO
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SelectDataSourceMessageDTO extends PageCode {

    /**
     * 数据源状态
     */
    private String dsmStatus;

    /**
     * 数据源名称
     */
    @Length(max = 30, message = "数据源名称长度不能超过30")
    private String dsmName;
}
